<template>
	<view class="detail_stone">
		<view class="goods_info_conent">
			<view class="left_img">
				<!-- <image v-if="item.goodsImage" @click="lookImg([item.goodsImage],0)"
												class="img" lazy-load :src="item.goodsImage" mode="aspectFill"></image> -->
				<uni-icons color="#aae" size="48" type="image"></uni-icons>
			</view>
			<view class="right_text">
				<view class="brands">
					【品牌】名称
				</view>
				<view class="pt">
					<span class="tip">商品编号：</span>
					<view class="lis">
						xxxx
					</view>
				</view>
				<view class="pt">
					<span class="tip">商品型号：</span>
					<view class="lis">
						xxx
					</view>
				</view>
				<view class="pt">
					<span class="tip">商品规格：</span>
					<view class="lis">
						xxxx
					</view>
				</view>
				<view class="pt">
					<span class="tip">商品分类：</span>
					<view class="lis">
						xxx
					</view>
				</view>
				<view class="pt">
					<span class="tip">可用库存：</span>
					<view class="lis" style="color: #007cff;">
						1000
					</view>
				</view>
			</view>
		</view>
		<view class="in_out">
			<p class="title">出入库明细</p>
			<p class="num_tip">入库总数：100</p>
			<p class="num_tip">出库总数：100</p>
		</view>
		<view class="use_stone">
			<view class="title_label">
				<p class="title">所在仓库明细</p>
				<p class="title_">可用库存</p>
			</view>
			<view v-for="(item,index) in listArr" :key="index" class="stone_num">
				<p>{{item.name}}</p>
				<p style="color: #007cff;">{{item.num}}</p>
			</view>
		</view>
	</view>
</template>

<script lang="ts" setup>
	import { ref } from 'vue'
	const listArr = ref([
		{ name: 'xxx工程师仓库', num: 1000 },
		{ name: 'xxx工程师仓库', num: 1000 },
		{ name: 'xxx工程师仓库', num: 1000 },
		{ name: 'xxx工程师仓库', num: 1000 },
		{ name: 'xxxxxx服务商仓库', num: 1000 }
	])
</script>

<style lang="scss" scoped>
	.detail_stone {
		background-color: #fafafafa;
		/* #ifdef H5 */
		height: calc(100vh - 44px);
		/* #endif */
		/* #ifndef H5 */
		height: 100vh;
		/* #endif */
		display: flex;
		flex-direction: column;
		flex: 1;
		overflow: hidden;
		padding: 24rpx;
		row-gap: 24rpx;
		box-sizing: border-box;

		.goods_info_conent {
			display: flex;
			// align-items: center;
			background-color: #fff;
			padding: 24rpx;

			.left_img {
				width: 180rpx;
				height: 180rpx;
				box-shadow: 0 0 2rpx 2rpx #eee;
				border-radius: 4rpx;
				margin: 0 24rpx 0 0;

				.img {
					width: 100%;
					height: 100%;
					border-radius: 4rpx;
				}
			}

			.right_text {
				font-size: 24rpx;
				flex: 1;
				position: relative;

				.brands {
					font-weight: bold;
					font-size: 28rpx;
					display: -webkit-box;
					-webkit-line-clamp: 2;
					-webkit-box-orient: vertical;
					overflow: hidden;
					word-wrap: break-word;
					word-break: break-all;

				}

				.pt {
					margin-top: 16rpx;
					display: flex;
					align-items: center;
					width: 100%;
					justify-content: flex-start;

					.tip {
						color: #777;
					}

					.lis {
						display: -webkit-box;
						-webkit-line-clamp: 2;
						-webkit-box-orient: vertical;
						overflow: hidden;
						word-wrap: break-word;
						word-break: break-all;
						flex: 1;
						font-weight: bold;
					}
				}
			}
		}

		.in_out {
			background-color: #fff;
			padding: 24rpx;
			display: flex;
			flex-direction: column;
			gap: 10rpx;

			.title {
				font-weight: bold;
				font-size: 30rpx;
				margin-bottom: 6rpx;
			}

			.num_tip {
				font-size: 28rpx;
			}
		}

		.use_stone {
			background-color: #fff;
			padding: 24rpx;
			display: flex;
			flex-direction: column;
			gap: 24rpx;

			.title_label {
				display: flex;
				justify-content: space-between;
				font-size: 30rpx;
				font-weight: bold;

				.title_ {
					font-size: 28rpx;
				}
			}

			.stone_num {
				display: flex;
				justify-content: space-between;
				font-size: 26rpx;
				font-weight: bold;
			}
		}
	}
</style>